
const app = getApp()

Page({
  data: {
     timeWait:4
  },
  login(){
    console.log('点击事件执行了')
    wx.getUserProfile({
      desc: '授权登录',
      success(res){
        console.log('授权成功',res)
    },
    fail(res){
      console.log('授权失败',res)
    }
    })
    },
  enter :function(){
  wx.switchTab({
    url: '/pages/home/home',
  })

  },




})